﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using CashFlow.Db.Entity;
using CashFlow.Admin.Def;

namespace CashFlow.Admin.Service
{
    public interface IAdminService : IService<AdminEntity>
    {
        bool Login(string username, string pwd);

        AdminEntity GetLoginUserInfo();

        bool IsLogin();

        bool IsAdministrator();

        IList<AdminShopInfoView> QueryAll2();

        bool DeleteById(int adminId);

        bool ResetPwd(string pwd
            , string newPwd
            , int adminId);

        int AddAdminEntity(int shopManagerUserId
            , string username
            , string pwd
            , string name);
    }
}